package cn.clq.ymcc.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterDto {
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp ="^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$",message = "手机号不合法")
    private String mobile;
    @NotEmpty(message = "图形验证码不能为空")
    private String imageCode;//填入的图形验证码
    @NotEmpty(message = "请填写完整信息")
    private String registerImageCodeKey;//存储图形验证码的key
    private String smsCode;//客人填写的短信验证码
    @NotEmpty(message = "密码不能为空")
    private String password;
    //注册渠道
    private Integer regChannel;

}